﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dror.Common.Data.Contracts;

namespace Entities
{
    public class PinterestUserInfo : IEntity
    {
        public virtual long Id { get; set; }
        public virtual string Email { get; set; }
        public virtual string Name { get; set; }
        public virtual string Url { get; set; }
        public virtual PlaceInfo PlaceInfo { get; set; }
        private readonly string PinterestBaseUri = @"http://www.pinterest.com";
        public virtual long Followers { get; set; }
        public virtual long Following { get; set; }

        public virtual string GetAbsoluteUrl()
        {
            var uri = new Uri(PinterestBaseUri);
            return string.Format("{0}{1}", uri.GetLeftPart(UriPartial.Authority), Url);
        }
    }
}
